package com.annotation.tx;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author: qiuli
 * @date: 2022/1/19 18:45
 * @description:
 */


public class TxConfigTest {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TxConfig.class);
        UserService userService = applicationContext.getBean(UserService.class);
        userService.insertUser();

    }
}
